<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Cate/index')}">{:lang('墓区类型')}</a></li>
			<li class="active"><a href="{:url('Cate/add')}">{:lang('ADD_CATE')}</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:url('Cate/add_post')}">
        	<input type="hidden" name="type" value="5" >
            <input type="hidden" name="mark" value="normal" >
			<fieldset>
            	<div class="control-group">
					<label class="control-label">{:lang('P_CATE')}</label>
					<div class="controls">
						<select class="form-control">
							<option value="0" <if condition="$pid eq 0">selected</if>>{:lang('P_CATE_ITEM')}</option>
							<foreach name='cates' item='vo'>
								<option value="{$vo.id}" <if condition="$pid eq $vo['id']">selected</if>>{$vo.cate_name}</option>
							</foreach>
                        </select>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('CATE_NAME')}</label>
					<div class="controls">
						<input type="text" name="cate_name"  class="form-control">
						<input type="hidden" name="parent_id"  class="form-control" value="{$pid}">
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('SORT_ORDER')}</label>
					<div class="controls">
						<input type="text" name="sort_order" value="255"  class="form-control">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('IF_SHOW')}</label>
					<div class="controls">
						<input type="radio" name="if_show" value="1" checked />&nbsp;{:lang('YES')}
						<input type="radio" name="if_show" value="0"/>&nbsp;{:lang('NO')}
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
</body>
</html>